package com.neutech.variable;

/**
 * 运算符 %
 * 逻辑运算符  boolean
 * @author Neuedu-远哥
 * @version 1.0
 * @date 2021/11/9 14:10
 */
public class Demo07 {
    public static void main(String[] args) {
        int a = 10;
        int b = -3;
        // 一个数对另一个取余的正负性，取决于第一个数
        // 用于周期函数
        System.out.println(a % b);

        boolean b1 = a > b;
        boolean b2 = b * 3 < -10;
        System.out.println(b1 && b2);

        int num1 = 32;
        System.out.println(num1 >> 3);

        System.out.println(3 & 5);
        System.out.println(3 | 5);

    }
}
